Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,8 +18,6 @@ def reply(message, history):
|
|
| 18 |
inputs = tokenizer(prompt.format(m), return_tensors="pt")
|
| 19 |
outputs = model.generate(**inputs)
|
| 20 |
code=tokenizer.batch_decode(outputs, skip_special_tokens=True)
|
| 21 |
-
|
| 22 |
-
time.sleep(0.3)
|
| 23 |
-
yield code[: i+1]
|
| 24 |
|
| 25 |
-
gr.ChatInterface(reply).
|
|
|
|
| 18 |
inputs = tokenizer(prompt.format(m), return_tensors="pt")
|
| 19 |
outputs = model.generate(**inputs)
|
| 20 |
code=tokenizer.batch_decode(outputs, skip_special_tokens=True)
|
| 21 |
+
return code
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
gr.ChatInterface(reply).launch()
|