Spaces:
Runtime error
Runtime error
Omachoko
commited on
Commit
·
50f18bd
1
Parent(s):
008f512
Fix: remove invalid first line causing syntax error in app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import gradio as gr
|
3 |
import requests
|
4 |
import inspect
|
@@ -39,7 +39,7 @@ def llama3_chat(prompt):
|
|
39 |
messages=[{"role": "user", "content": prompt}],
|
40 |
)
|
41 |
return completion.choices[0].message.content
|
42 |
-
|
43 |
logging.error(f"llama3_chat error: {e}")
|
44 |
return f"LLM error: {e}"
|
45 |
|
|
|
1 |
+
import os
|
2 |
import gradio as gr
|
3 |
import requests
|
4 |
import inspect
|
|
|
39 |
messages=[{"role": "user", "content": prompt}],
|
40 |
)
|
41 |
return completion.choices[0].message.content
|
42 |
+
except Exception as e:
|
43 |
logging.error(f"llama3_chat error: {e}")
|
44 |
return f"LLM error: {e}"
|
45 |
|