Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ client = InferenceClient(api_key=api_key)
|
|
9 |
def chat_with_model(prompt):
|
10 |
response_text = ""
|
11 |
for message in client.chat_completion(
|
12 |
-
model="
|
13 |
messages=[{"role": "user", "content": prompt}],
|
14 |
max_tokens=250,
|
15 |
stream=True,
|
@@ -19,3 +19,6 @@ def chat_with_model(prompt):
|
|
19 |
|
20 |
interface = gr.Interface(fn=chat_with_model, inputs="text", outputs="text", title="Chat with Hugging Face Model")
|
21 |
interface.launch()
|
|
|
|
|
|
|
|
9 |
def chat_with_model(prompt):
|
10 |
response_text = ""
|
11 |
for message in client.chat_completion(
|
12 |
+
model="dicta-il/dictalm-7b",
|
13 |
messages=[{"role": "user", "content": prompt}],
|
14 |
max_tokens=250,
|
15 |
stream=True,
|
|
|
19 |
|
20 |
interface = gr.Interface(fn=chat_with_model, inputs="text", outputs="text", title="Chat with Hugging Face Model")
|
21 |
interface.launch()
|
22 |
+
|
23 |
+
|
24 |
+
# model="google/gemma-2-2b-it" ืื ืืืื ืฉืขืื
|