mervenoyan commited on
Commit
243d205
1 Parent(s): e116b16

added pip commands into app

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -7,6 +7,10 @@ import tensorflow_text as text
7
  from tensorflow import keras
8
  import gradio as gr
9
 
 
 
 
 
10
 
11
  def make_bert_preprocessing_model(sentence_features, seq_length=128):
12
  """Returns Model mapping string features to BERT inputs.
@@ -132,6 +136,6 @@ with block:
132
 
133
  run = gr.Button("Run")
134
  label = gr.outputs.Label()
135
- run.click(model, inputs=[image_1, text_1, image_2, text_2], outputs=label)
136
 
137
  block.launch()
7
  from tensorflow import keras
8
  import gradio as gr
9
 
10
+ import os
11
+ os.system("pip install gradio==2.8.0b5")
12
+ os.system("pip install -r requirements.txt")
13
+ os.system("pip freeze")
14
 
15
  def make_bert_preprocessing_model(sentence_features, seq_length=128):
16
  """Returns Model mapping string features to BERT inputs.
136
 
137
  run = gr.Button("Run")
138
  label = gr.outputs.Label()
139
+ run.click(classify_info, inputs=[image_1, text_1, image_2, text_2], outputs=label)
140
 
141
  block.launch()