Spaces:
Running
on
Zero
Running
on
Zero
Update Gradio app with multiple files
Browse files- app.py +3 -3
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -72,10 +72,10 @@ def respond(message, history):
|
|
| 72 |
thread.start()
|
| 73 |
|
| 74 |
# Stream the response
|
| 75 |
-
|
| 76 |
for new_text in streamer:
|
| 77 |
-
|
| 78 |
-
yield
|
| 79 |
|
| 80 |
|
| 81 |
# Create the Gradio interface
|
|
|
|
| 72 |
thread.start()
|
| 73 |
|
| 74 |
# Stream the response
|
| 75 |
+
response = ""
|
| 76 |
for new_text in streamer:
|
| 77 |
+
response += new_text
|
| 78 |
+
yield response
|
| 79 |
|
| 80 |
|
| 81 |
# Create the Gradio interface
|
requirements.txt
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
torch
|
| 3 |
accelerate
|
| 4 |
bitsandbytes
|
|
|
|
| 1 |
+
gradio
|
| 2 |
+
transformers
|
| 3 |
torch
|
| 4 |
accelerate
|
| 5 |
bitsandbytes
|