Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import requests
|
|
3 |
from huggingface_hub import InferenceClient
|
4 |
|
5 |
# HuggingFace modeli
|
6 |
-
client = InferenceClient("
|
7 |
|
8 |
# Sistem mesajı GitHub'dan alınacak
|
9 |
GITHUB_RAW_URL = "https://raw.githubusercontent.com/ALPERALL/AlpDroid/main/prompt.txt"
|
@@ -75,7 +75,7 @@ theme = gr.themes.Soft(
|
|
75 |
|
76 |
# Arayüz oluşturuluyor
|
77 |
with gr.Blocks(theme=theme) as demo:
|
78 |
-
gr.Markdown("## 🤖 AlpDroid
|
79 |
|
80 |
chatbot = gr.Chatbot(label="AlpDroid")
|
81 |
state = gr.State([])
|
@@ -83,10 +83,10 @@ with gr.Blocks(theme=theme) as demo:
|
|
83 |
with gr.Row():
|
84 |
txt = gr.Textbox(
|
85 |
show_label=False,
|
86 |
-
placeholder="
|
87 |
scale=4
|
88 |
)
|
89 |
-
submit = gr.Button("
|
90 |
|
91 |
with gr.Row():
|
92 |
file_upload = gr.File(label="Dosya Yükle", file_types=["image", "video", ".pdf", ".txt"], file_count="single")
|
|
|
3 |
from huggingface_hub import InferenceClient
|
4 |
|
5 |
# HuggingFace modeli
|
6 |
+
client = InferenceClient("MiniMaxAI/MiniMax-M1-80k")
|
7 |
|
8 |
# Sistem mesajı GitHub'dan alınacak
|
9 |
GITHUB_RAW_URL = "https://raw.githubusercontent.com/ALPERALL/AlpDroid/main/prompt.txt"
|
|
|
75 |
|
76 |
# Arayüz oluşturuluyor
|
77 |
with gr.Blocks(theme=theme) as demo:
|
78 |
+
gr.Markdown("## 🤖 AlpDroid\n, Alper A. tarafından yapıldı, yasadışı kullanımda sorumluluk kullanıcıya aittir.")
|
79 |
|
80 |
chatbot = gr.Chatbot(label="AlpDroid")
|
81 |
state = gr.State([])
|
|
|
83 |
with gr.Row():
|
84 |
txt = gr.Textbox(
|
85 |
show_label=False,
|
86 |
+
placeholder="Sohbet etmek için dokun...",
|
87 |
scale=4
|
88 |
)
|
89 |
+
submit = gr.Button("⬆️", scale=1)
|
90 |
|
91 |
with gr.Row():
|
92 |
file_upload = gr.File(label="Dosya Yükle", file_types=["image", "video", ".pdf", ".txt"], file_count="single")
|