bristandevandel commited on
Commit
33e6244
·
verified ·
1 Parent(s): 3dcf6e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -26
app.py CHANGED
@@ -844,30 +844,6 @@ custom_css = """
844
  body {background-color: #f7f7f7; font-family: Arial, sans-serif; margin: 0; padding: 0;}
845
  h1 {font-family: Helvetica, sans-serif; color: #2a9d8f; text-align: center; margin-bottom: 0.5em;}
846
  .gradio-container {max-width: 400px; margin: 0; padding: 10px; position: fixed; bottom: 20px; right: 20px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); border-radius: 10px; background-color: #fff;}
847
-
848
-
849
-
850
- /* För mobila enheter */
851
- @media (max-width: 768px) {
852
- .gradio-container {
853
- position: static; /* Ta bort fixed för små skärmar */
854
- width: 100%;
855
- max-width: none;
856
- margin: 0;
857
- border-radius: 0;
858
- box-shadow: none;
859
- }
860
-
861
- #chatbot_conversation {
862
- max-height: 60vh; /* Anpassa höjd */
863
- }
864
-
865
- .gr-button {
866
- width: 100%; /* Gör knappar fullbredd */
867
- }
868
- }
869
-
870
-
871
  #chatbot_conversation { max-height: 300px; overflow-y: auto; }
872
  .gr-button {background-color: #2a9d8f; color: #fff; border: none; border-radius: 4px; padding: 8px 16px; margin: 5px;}
873
  .gr-button:hover {background-color: #264653;}
@@ -885,7 +861,7 @@ footer {display: none !important;}
885
  .gradio-container .gr-footer {display: none !important;}
886
  """
887
 
888
- with gr.Blocks(css=custom_css, title="ChargeNode Kundtjänst", theme="default", responsive=True) as app:
889
  gr.Markdown("Ställ din fråga om ChargeNodes produkter och tjänster nedan. Om du inte gillar botten, så ring oss gärna på 010 – 205 10 55")
890
 
891
  with gr.Group(visible=True) as chat_interface:
@@ -893,7 +869,7 @@ with gr.Blocks(css=custom_css, title="ChargeNode Kundtjänst", theme="default",
893
  chatbot.like(vote, None, None)
894
 
895
  with gr.Row():
896
- msg = gr.Textbox(label="Meddelande", placeholder="Ange din fråga...", scale=12)
897
 
898
  with gr.Row():
899
  with gr.Column(scale=1):
 
844
  body {background-color: #f7f7f7; font-family: Arial, sans-serif; margin: 0; padding: 0;}
845
  h1 {font-family: Helvetica, sans-serif; color: #2a9d8f; text-align: center; margin-bottom: 0.5em;}
846
  .gradio-container {max-width: 400px; margin: 0; padding: 10px; position: fixed; bottom: 20px; right: 20px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); border-radius: 10px; background-color: #fff;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
847
  #chatbot_conversation { max-height: 300px; overflow-y: auto; }
848
  .gr-button {background-color: #2a9d8f; color: #fff; border: none; border-radius: 4px; padding: 8px 16px; margin: 5px;}
849
  .gr-button:hover {background-color: #264653;}
 
861
  .gradio-container .gr-footer {display: none !important;}
862
  """
863
 
864
+ with gr.Blocks(css=custom_css, title="ChargeNode Kundtjänst") as app:
865
  gr.Markdown("Ställ din fråga om ChargeNodes produkter och tjänster nedan. Om du inte gillar botten, så ring oss gärna på 010 – 205 10 55")
866
 
867
  with gr.Group(visible=True) as chat_interface:
 
869
  chatbot.like(vote, None, None)
870
 
871
  with gr.Row():
872
+ msg = gr.Textbox(label="Meddelande", placeholder="Ange din fråga...")
873
 
874
  with gr.Row():
875
  with gr.Column(scale=1):