Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -276,7 +276,7 @@ def generate(text, history, rag_option, model_option, k=3, temperature=0.5, max
|
|
| 276 |
raise gr.Error("Prompt ist erforderlich.")
|
| 277 |
|
| 278 |
try:
|
| 279 |
-
if (model_option == "
|
| 280 |
#Anfrage an InferenceEndpoint1 ----------------------------
|
| 281 |
API_URL = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta"
|
| 282 |
print("HF1")
|
|
|
|
| 276 |
raise gr.Error("Prompt ist erforderlich.")
|
| 277 |
|
| 278 |
try:
|
| 279 |
+
if (model_option == "HuggingFace1"):
|
| 280 |
#Anfrage an InferenceEndpoint1 ----------------------------
|
| 281 |
API_URL = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta"
|
| 282 |
print("HF1")
|