Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
from huggingface_hub import InferenceClient
|
2 |
-
from
|
3 |
import gradio as gr
|
4 |
|
5 |
### setting the seed
|
6 |
-
|
7 |
|
8 |
client = InferenceClient(
|
9 |
"mistralai/Mistral-7B-Instruct-v0.3"
|
@@ -90,9 +90,9 @@ gr.ChatInterface(
|
|
90 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
91 |
additional_inputs=additional_inputs,
|
92 |
title="""Mistral 7B v0.3"""
|
93 |
-
).launch(show_api=
|
94 |
|
95 |
|
96 |
-
gr.load("models/ehristoforu/dalle-3-xl-v2").launch()
|
97 |
|
98 |
-
gr.load("models/microsoft/Phi-3-mini-4k-instruct").launch()
|
|
|
1 |
from huggingface_hub import InferenceClient
|
2 |
+
from transformers import set_seed
|
3 |
import gradio as gr
|
4 |
|
5 |
### setting the seed
|
6 |
+
set_seed(111)
|
7 |
|
8 |
client = InferenceClient(
|
9 |
"mistralai/Mistral-7B-Instruct-v0.3"
|
|
|
90 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
91 |
additional_inputs=additional_inputs,
|
92 |
title="""Mistral 7B v0.3"""
|
93 |
+
).launch(show_api=True)
|
94 |
|
95 |
|
96 |
+
# gr.load("models/ehristoforu/dalle-3-xl-v2").launch()
|
97 |
|
98 |
+
# gr.load("models/microsoft/Phi-3-mini-4k-instruct").launch()
|