alperall commited on
Commit
6af77aa
·
verified ·
1 Parent(s): 6a3e44c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -1,16 +1,18 @@
1
  import gradio as gr
2
  import requests
3
 
4
- # AlpDroid prompt'unu çek
5
  alp_droid_prompt = requests.get(
6
  "https://raw.githubusercontent.com/ALPERALL/AlpDroid/main/prompt.txt"
7
  ).text
8
 
9
- # Modeli Gradio ile yükle
10
- demo = gr.load(
11
- "models/moonshotai/Kimi-K2-Instruct",
12
- provider="fireworks-ai",
13
  )
14
 
15
- # Launch ederken sadece prompt'u başlangıç mesajı olarak verecek şekilde ayarla
16
- demo.launch(inputs=alp_droid_prompt)
 
 
 
 
 
1
  import gradio as gr
2
  import requests
3
 
 
4
  alp_droid_prompt = requests.get(
5
  "https://raw.githubusercontent.com/ALPERALL/AlpDroid/main/prompt.txt"
6
  ).text
7
 
8
+ model = gr.load(
9
+ "models/moonshotai/Kimi-K2-Instruct",
10
+ provider="fireworks-ai",
 
11
  )
12
 
13
+ def ask_alpdroid(user_input):
14
+ combined = alp_droid_prompt + "\n\n" + user_input
15
+ return model(combined)
16
+
17
+ # Arayüz çağrısı yok, sadece launch
18
+ model.launch()