Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,20 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
# Deutsche LLM Konfiguration
|
| 6 |
HF_TOKEN = os.getenv("tomoniaccess")
|
| 7 |
current_model = "HuggingFaceH4/zephyr-7b-beta"
|
| 8 |
-
client = InferenceClient(model=current_model, token=HF_TOKEN)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
conversation_history = []
|
| 11 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
import os
|
| 4 |
+
import gradio as gr
|
| 5 |
+
import time
|
| 6 |
+
import random
|
| 7 |
+
import json
|
| 8 |
|
| 9 |
# Deutsche LLM Konfiguration
|
| 10 |
HF_TOKEN = os.getenv("tomoniaccess")
|
| 11 |
current_model = "HuggingFaceH4/zephyr-7b-beta"
|
| 12 |
+
#client = InferenceClient(model=current_model, token=HF_TOKEN)
|
| 13 |
+
client = InferenceClient(
|
| 14 |
+
model=current_model,
|
| 15 |
+
provider="auto" # <- automatisch wählen
|
| 16 |
+
token=HF_TOKEN
|
| 17 |
+
)
|
| 18 |
|
| 19 |
conversation_history = []
|
| 20 |
|