Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ llama_model = gr.load("models/meta-llama/Llama-3.1-8B-Instruct")
|
|
14 |
def chat_with_llama(user_input):
|
15 |
# Ensure user_input is correctly formatted as a string
|
16 |
if isinstance(user_input, str):
|
17 |
-
response = llama_model(
|
18 |
return response[0] # Return the first element of the output list
|
19 |
else:
|
20 |
return "Invalid input. Please provide a valid text."
|
|
|
14 |
def chat_with_llama(user_input):
|
15 |
# Ensure user_input is correctly formatted as a string
|
16 |
if isinstance(user_input, str):
|
17 |
+
response = llama_model(user_input)
|
18 |
return response[0] # Return the first element of the output list
|
19 |
else:
|
20 |
return "Invalid input. Please provide a valid text."
|