anezatra2 commited on
Commit
302243c
1 Parent(s): 8187bc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,7 +36,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
36
  yield f"Hata: {e}"
37
 
38
  # Gradio arayüzünü oluşturuyoruz
39
- with gr.Blocks(theme=gr.themes.Base()) as demo: # Dark theme can be specified here
40
  system_message = gr.Textbox(value="You are a GPT-2 model chatbot named Simulacra. You are produced by Anezatra.", label="Sistem mesajı")
41
  max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Maksimum yeni token sayısı")
42
  temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Sıcaklık (Temperature)")
@@ -70,4 +70,4 @@ with gr.Blocks(theme=gr.themes.Base()) as demo: # Dark theme can be specified h
70
 
71
  # Uygulamayı başlatıyoruz
72
  if __name__ == "__main__":
73
- demo.launch()
 
36
  yield f"Hata: {e}"
37
 
38
  # Gradio arayüzünü oluşturuyoruz
39
+ with gr.Blocks(theme="gradio/seafoam") as demo:
40
  system_message = gr.Textbox(value="You are a GPT-2 model chatbot named Simulacra. You are produced by Anezatra.", label="Sistem mesajı")
41
  max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Maksimum yeni token sayısı")
42
  temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Sıcaklık (Temperature)")
 
70
 
71
  # Uygulamayı başlatıyoruz
72
  if __name__ == "__main__":
73
+ demo.launch(share=True)