mgokg commited on
Commit
56281c6
·
verified ·
1 Parent(s): 641d4fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -2
app.py CHANGED
@@ -13,6 +13,19 @@ genai.configure(api_key=os.environ["geminiapikey"])
13
  api_key = os.environ.get('GROQ_API_KEY')
14
  read_key = os.environ.get('HF_TOKEN', None)
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  # Initialize Groq client
17
  if api_key:
18
  from groq import Client as GroqClient
@@ -133,12 +146,12 @@ def load_data():
133
  return df
134
 
135
  # Create the Gradio interface
136
- with gr.Blocks() as demo:
137
  gr.Markdown("[Download](https://specialist-it.de/verein.csv)")
138
  with gr.Row():
139
  ort_input = gr.Textbox(label="Ort", placeholder="Gib den Namen des Ortes ein")
140
  with gr.Row():
141
- details_output = gr.Markdown(label="Ausgabe")
142
  #details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
143
 
144
  def process_ort(ort):
 
13
  api_key = os.environ.get('GROQ_API_KEY')
14
  read_key = os.environ.get('HF_TOKEN', None)
15
 
16
+
17
+ custom_css = """
18
+ #md {
19
+ height: 500px;
20
+ font-size: 30px;
21
+ background: #121212;
22
+ padding: 20px;
23
+ padding-top: 40px;
24
+ color: white;
25
+ border: 1 px solid #383838;
26
+ }
27
+ """
28
+
29
  # Initialize Groq client
30
  if api_key:
31
  from groq import Client as GroqClient
 
146
  return df
147
 
148
  # Create the Gradio interface
149
+ with gr.Blocks(css=custom_css) as demo:
150
  gr.Markdown("[Download](https://specialist-it.de/verein.csv)")
151
  with gr.Row():
152
  ort_input = gr.Textbox(label="Ort", placeholder="Gib den Namen des Ortes ein")
153
  with gr.Row():
154
+ details_output = gr.Markdown(label="Ausgabe, elem_id="md")
155
  #details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
156
 
157
  def process_ort(ort):