hossamdaoud
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
3 |
-
import os
|
4 |
|
5 |
-
|
6 |
-
|
|
|
7 |
|
8 |
|
9 |
def format_prompt(message, history):
|
@@ -92,4 +92,4 @@ gr.ChatInterface(
|
|
92 |
additional_inputs=additional_inputs,
|
93 |
title="Exam Advisor for Postgraduate Trained 🏛️",
|
94 |
concurrency_limit=20,
|
95 |
-
).launch(show_api=False)
|
|
|
1 |
from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
|
|
3 |
|
4 |
+
client = InferenceClient(
|
5 |
+
"mistralai/Mixtral-8x7B-Instruct-v0.1"
|
6 |
+
)
|
7 |
|
8 |
|
9 |
def format_prompt(message, history):
|
|
|
92 |
additional_inputs=additional_inputs,
|
93 |
title="Exam Advisor for Postgraduate Trained 🏛️",
|
94 |
concurrency_limit=20,
|
95 |
+
).launch(show_api=False)
|