kopilk commited on
Commit
91ff806
·
verified ·
1 Parent(s): 7438904

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
 
2
  import gradio as gr
3
  import ollama
4
- print("Hello world!")
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
- iface.launch()
 
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