mrbeliever commited on
Commit
987a1de
Β·
verified Β·
1 Parent(s): b178c1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -45,13 +45,18 @@ def run_example(image, text_input=default_question, model_id="microsoft/Phi-3.5-
45
  return response
46
 
47
  css = """
48
- #output {
49
- height: 500px;
50
- overflow: auto;
51
- border: 1px solid #ccc;
52
  }
53
- #model_selector, #text_input {
54
- display: none !important;
 
 
 
 
 
55
  }
56
  """
57
 
@@ -60,7 +65,7 @@ with gr.Blocks(css=css) as demo:
60
  with gr.Tab(label="Phi-3.5 Input"):
61
  with gr.Row():
62
  with gr.Column():
63
- input_img = gr.Image(label="Input Picture")
64
  model_selector = gr.Dropdown(choices=list(models.keys()), label="Model", value="microsoft/Phi-3.5-vision-instruct", visible=False)
65
  text_input = gr.Textbox(label="Question", value=default_question, visible=False)
66
  submit_btn = gr.Button(value="Submit")
 
45
  return response
46
 
47
  css = """
48
+ #output_text {
49
+ height: 500px;
50
+ overflow: auto;
51
+ border: 1px solid #333;
52
  }
53
+ #model_selector, #text_input {
54
+ display: none !important;
55
+ }
56
+ #main_container {
57
+ border: 2px solid black;
58
+ padding: 20px;
59
+ border-radius: 10px;
60
  }
61
  """
62
 
 
65
  with gr.Tab(label="Phi-3.5 Input"):
66
  with gr.Row():
67
  with gr.Column():
68
+ input_img = gr.Image(label="Input Picture", interactive=True)
69
  model_selector = gr.Dropdown(choices=list(models.keys()), label="Model", value="microsoft/Phi-3.5-vision-instruct", visible=False)
70
  text_input = gr.Textbox(label="Question", value=default_question, visible=False)
71
  submit_btn = gr.Button(value="Submit")