Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
import subprocess
|
| 3 |
import os
|
| 4 |
import torch
|
|
@@ -167,7 +167,7 @@ def process_stream(stream_queue: Queue, history: List[List[str]]) -> Generator[L
|
|
| 167 |
new_history[-1][1] = current_response # Update the assistant's message
|
| 168 |
yield new_history
|
| 169 |
|
| 170 |
-
|
| 171 |
def ask_question_gradio(question: str, history: List[List[str]]) -> Generator[tuple, None, None]:
|
| 172 |
try:
|
| 173 |
if history is None:
|
|
|
|
| 1 |
+
|
| 2 |
import subprocess
|
| 3 |
import os
|
| 4 |
import torch
|
|
|
|
| 167 |
new_history[-1][1] = current_response # Update the assistant's message
|
| 168 |
yield new_history
|
| 169 |
|
| 170 |
+
|
| 171 |
def ask_question_gradio(question: str, history: List[List[str]]) -> Generator[tuple, None, None]:
|
| 172 |
try:
|
| 173 |
if history is None:
|