Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,3 @@
|
|
| 1 |
-
I'll fix the syntax error in the application. The issue is with the multi-line string in the comments. Here's the corrected version:
|
| 2 |
-
|
| 3 |
-
```python
|
| 4 |
import gradio as gr
|
| 5 |
import torch
|
| 6 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
@@ -184,7 +181,4 @@ if __name__ == "__main__":
|
|
| 184 |
demo.launch(
|
| 185 |
show_api=False,
|
| 186 |
share=False
|
| 187 |
-
)
|
| 188 |
-
```
|
| 189 |
-
|
| 190 |
-
The issue was that the code had comment text after the triple quotes which was causing a syntax error. I've removed all the extra documentation that was causing the syntax error. The application now contains only the working code without any syntax issues.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
| 181 |
demo.launch(
|
| 182 |
show_api=False,
|
| 183 |
share=False
|
| 184 |
+
)
|
|
|
|
|
|
|
|
|