gabrielchua commited on
Commit
95030a4
1 Parent(s): 54872aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -56,20 +56,21 @@ with gr.Blocks(theme=gr.themes.Soft(), fill_height=True) as app:
56
  # Button to run the prediction
57
  get_classfication = gr.Button("Check Content")
58
 
 
 
 
 
 
 
 
 
59
  # Add Examples component
60
  gr.Examples(
61
  examples=EXAMPLES,
62
  inputs=[system_prompt, user_prompt],
63
  label="Example Inputs"
64
  )
65
-
66
- output_result = gr.Markdown(label="Classification and Probabilities")
67
 
68
- get_classfication.click(
69
- fn=predict,
70
- inputs=[system_prompt, user_prompt],
71
- outputs=output_result
72
- )
73
 
74
  if __name__ == "__main__":
75
  app.launch()
 
56
  # Button to run the prediction
57
  get_classfication = gr.Button("Check Content")
58
 
59
+ # Results
60
+ output_result = gr.Markdown(label="Classification and Probabilities")
61
+ get_classfication.click(
62
+ fn=predict,
63
+ inputs=[system_prompt, user_prompt],
64
+ outputs=output_result
65
+ )
66
+
67
  # Add Examples component
68
  gr.Examples(
69
  examples=EXAMPLES,
70
  inputs=[system_prompt, user_prompt],
71
  label="Example Inputs"
72
  )
 
 
73
 
 
 
 
 
 
74
 
75
  if __name__ == "__main__":
76
  app.launch()