Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,9 +46,9 @@ def generate(prompt, history):
|
|
| 46 |
|
| 47 |
for response in stream:
|
| 48 |
output += response.token.text
|
| 49 |
-
yield [(prompt,output)],
|
| 50 |
|
| 51 |
-
if "PROMPT:" and "MEME_TEXT:" in
|
| 52 |
print("YES")
|
| 53 |
prompt_t=output1.split("PROMPT:",1)[1].split("MEME_TEXT:",1)[0].strip()
|
| 54 |
print(prompt_t)
|
|
|
|
| 46 |
|
| 47 |
for response in stream:
|
| 48 |
output += response.token.text
|
| 49 |
+
yield [(prompt,output)],output
|
| 50 |
|
| 51 |
+
if "PROMPT:" and "MEME_TEXT:" in output:
|
| 52 |
print("YES")
|
| 53 |
prompt_t=output1.split("PROMPT:",1)[1].split("MEME_TEXT:",1)[0].strip()
|
| 54 |
print(prompt_t)
|