Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
|
2 |
import gradio as gr
|
3 |
import ollama
|
4 |
-
|
5 |
# Function to generate responses using the Deepseek-r1 model
|
6 |
def generate_response(question):
|
7 |
response = ollama.chat(model='YandexGPT-5-Lite-8B-instruct-GGUF', messages=[{'role': 'user', 'content': question}])
|
@@ -15,5 +15,6 @@ iface = gr.Interface(
|
|
15 |
description="Type your question and get answers directly from the Deepseek-r1 model."
|
16 |
)
|
17 |
# Launch the app
|
18 |
-
|
|
|
19 |
|
|
|
1 |
|
2 |
import gradio as gr
|
3 |
import ollama
|
4 |
+
|
5 |
# Function to generate responses using the Deepseek-r1 model
|
6 |
def generate_response(question):
|
7 |
response = ollama.chat(model='YandexGPT-5-Lite-8B-instruct-GGUF', messages=[{'role': 'user', 'content': question}])
|
|
|
15 |
description="Type your question and get answers directly from the Deepseek-r1 model."
|
16 |
)
|
17 |
# Launch the app
|
18 |
+
if __name__ == "__main__":
|
19 |
+
iface.launch(server_name="0.0.0.0", server_port=7860, pwa=True)
|
20 |
|