Abrahamau commited on
Commit
2749bcc
·
verified ·
1 Parent(s): 823e565

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -101,5 +101,17 @@ tab4 = gr.Interface(
101
  outputs=["image"],
102
  )
103
 
104
- demo = gr.TabbedInterface([tab1, tab2, tab3, tab4], ["Describe", "Estimage Age", "Speak", "Generate Image"])
 
 
 
 
 
 
 
 
 
 
 
 
105
  demo.launch()
 
101
  outputs=["image"],
102
  )
103
 
104
+
105
+ classifiertypes = ["umarbutler/open-australian-legal-distilgpt2"]
106
+ radio5 = gr.Radio(classifiertypes, value="umarbutler/open-australian-legal-distilgpt2", label="Select", info="Legal Question")
107
+ textinput5 = r.Textbox(value="Under the purposes of Part 6 Division 2 of the Act, regulations may confer power on an applicant for")
108
+
109
+
110
+ tab5 = gr.Interface(
111
+ fn=RunLegalModel,
112
+ inputs=[radio5, textinput5],
113
+ outputs=[text],
114
+ )
115
+
116
+ demo = gr.TabbedInterface([tab1, tab2, tab3, tab4, tab5], ["Describe", "Estimage Age", "Speak", "Generate Image", "Aus. Legal"])
117
  demo.launch()