Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -315,7 +315,7 @@ After writing the document, please provide a list of sources used in your respon
|
|
315 |
|
316 |
if model == "@cf/meta/llama-3.1-8b-instruct":
|
317 |
# Use Cloudflare API
|
318 |
-
for response in get_response_from_cloudflare(prompt, num_calls, temperature):
|
319 |
yield response, "" # Yield streaming response without sources
|
320 |
else:
|
321 |
# Use Hugging Face API
|
|
|
315 |
|
316 |
if model == "@cf/meta/llama-3.1-8b-instruct":
|
317 |
# Use Cloudflare API
|
318 |
+
for response in get_response_from_cloudflare(prompt="", context=context, query=query, num_calls=num_calls, temperature=temperature):
|
319 |
yield response, "" # Yield streaming response without sources
|
320 |
else:
|
321 |
# Use Hugging Face API
|