Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def mode_load(path):
|
|
| 101 |
else:
|
| 102 |
raise gr.Error("Oops, unsupported files.")
|
| 103 |
|
| 104 |
-
@spaces.GPU()
|
| 105 |
def stream_chat(message, history: list, temperature: float, max_length: int, top_p: float, top_k: int, penalty: float):
|
| 106 |
print(f'message is - {message}')
|
| 107 |
print(f'history is - {history}')
|
|
|
|
| 101 |
else:
|
| 102 |
raise gr.Error("Oops, unsupported files.")
|
| 103 |
|
| 104 |
+
@spaces.GPU(duration=30)
|
| 105 |
def stream_chat(message, history: list, temperature: float, max_length: int, top_p: float, top_k: int, penalty: float):
|
| 106 |
print(f'message is - {message}')
|
| 107 |
print(f'history is - {history}')
|