Spaces:
Sleeping
Sleeping
Rename app.py to app2.py
Browse files- app.py โ app2.py +1 -2
app.py โ app2.py
RENAMED
@@ -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,
|
@@ -21,4 +21,3 @@ interface = gr.Interface(fn=chat_with_model, inputs="text", outputs="text", titl
|
|
21 |
interface.launch()
|
22 |
|
23 |
|
24 |
-
# model="google/gemma-2-2b-it" ืื ืืืื ืฉืขืื
|
|
|
9 |
def chat_with_model(prompt):
|
10 |
response_text = ""
|
11 |
for message in client.chat_completion(
|
12 |
+
model="google/gemma-2-2b-it",
|
13 |
messages=[{"role": "user", "content": prompt}],
|
14 |
max_tokens=250,
|
15 |
stream=True,
|
|
|
21 |
interface.launch()
|
22 |
|
23 |
|
|