alexkueck commited on
Commit
5812523
1 Parent(s): cecb9eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -22
app.py CHANGED
@@ -84,14 +84,6 @@ def reset_chat():
84
  reset_textbox()
85
 
86
 
87
- ##########################################################
88
- #Übersetzungs Ki nutzen
89
- def translate():
90
- return "Kommt noch!"
91
-
92
- #Programmcode KI
93
- def coding():
94
- return "Kommt noch!"
95
 
96
  #######################################################################
97
  #Darstellung mit Gradio
@@ -102,9 +94,9 @@ with open("custom.css", "r", encoding="utf-8") as f:
102
  with gr.Blocks(theme=small_and_beautiful_theme) as demo:
103
  history = gr.State([])
104
  user_question = gr.State("")
105
- gr.Markdown("KIs am LI - wähle aus, was du bzgl. KI-Bots ausprobieren möchtest!")
106
  with gr.Tabs():
107
- with gr.TabItem("LI-Chat"):
108
  with gr.Row():
109
  gr.HTML(title)
110
  status_display = gr.Markdown("Erfolg", elem_id="status_display")
@@ -129,7 +121,7 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
129
  with gr.Column():
130
  with gr.Column(min_width=50, scale=1):
131
  with gr.Tab(label="Parameter zum Model"):
132
- gr.Markdown("# Parameters")
133
  top_p = gr.Slider(
134
  minimum=-0,
135
  maximum=1.0,
@@ -164,16 +156,6 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
164
  )
165
  gr.Markdown(description)
166
 
167
- with gr.TabItem("Übersetzungen"):
168
- with gr.Row():
169
- gr.Textbox(
170
- show_label=False, placeholder="Ist noch in Arbeit..."
171
- ).style(container=False)
172
- with gr.TabItem("Code-Generierungen"):
173
- with gr.Row():
174
- gr.Textbox(
175
- show_label=False, placeholder="Ist noch in Arbeit..."
176
- ).style(container=False)
177
 
178
  predict_args = dict(
179
  fn=predict,
@@ -213,6 +195,6 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
213
  )
214
  emptyBtn.click(**reset_args)
215
 
216
- demo.title = "LI Chat"
217
  #demo.queue(concurrency_count=1).launch(share=True)
218
  demo.queue(concurrency_count=1).launch(debug=True)
 
84
  reset_textbox()
85
 
86
 
 
 
 
 
 
 
 
 
87
 
88
  #######################################################################
89
  #Darstellung mit Gradio
 
94
  with gr.Blocks(theme=small_and_beautiful_theme) as demo:
95
  history = gr.State([])
96
  user_question = gr.State("")
97
+ gr.Markdown("KIs am LI - hier um Programmcode generieren zu lassen!")
98
  with gr.Tabs():
99
+ with gr.TabItem("LI-Coding-KI"):
100
  with gr.Row():
101
  gr.HTML(title)
102
  status_display = gr.Markdown("Erfolg", elem_id="status_display")
 
121
  with gr.Column():
122
  with gr.Column(min_width=50, scale=1):
123
  with gr.Tab(label="Parameter zum Model"):
124
+ gr.Markdown("# Parameter für Testzwecke")
125
  top_p = gr.Slider(
126
  minimum=-0,
127
  maximum=1.0,
 
156
  )
157
  gr.Markdown(description)
158
 
 
 
 
 
 
 
 
 
 
 
159
 
160
  predict_args = dict(
161
  fn=predict,
 
195
  )
196
  emptyBtn.click(**reset_args)
197
 
198
+ demo.title = "LI Coding KI"
199
  #demo.queue(concurrency_count=1).launch(share=True)
200
  demo.queue(concurrency_count=1).launch(debug=True)