Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,9 +61,9 @@ demo = gr.ChatInterface(
|
|
| 61 |
|
| 62 |
if __name__ == "__main__":
|
| 63 |
demo.launch()'''
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
|
| 68 |
import transformers
|
| 69 |
import torch
|
|
@@ -109,7 +109,7 @@ outputs = pipeline(
|
|
| 109 |
|
| 110 |
print(outputs[0]["generated_text"][len(prompt):])
|
| 111 |
|
| 112 |
-
|
| 113 |
|
| 114 |
import gradio as gr
|
| 115 |
|
|
|
|
| 61 |
|
| 62 |
if __name__ == "__main__":
|
| 63 |
demo.launch()'''
|
| 64 |
+
#!pip install -U "transformers==4.40.0" --upgrade
|
| 65 |
+
#!pip install -i https://pypi.org/simple/ bitsandbytes
|
| 66 |
+
#!pip install accelerate
|
| 67 |
|
| 68 |
import transformers
|
| 69 |
import torch
|
|
|
|
| 109 |
|
| 110 |
print(outputs[0]["generated_text"][len(prompt):])
|
| 111 |
|
| 112 |
+
#!pip install gradio
|
| 113 |
|
| 114 |
import gradio as gr
|
| 115 |
|