PoseyATX commited on
Commit
9e6aaaa
·
1 Parent(s): 928281a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -1,7 +1,14 @@
 
1
  import gradio as gr
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
 
 
 
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
1
+ import sys
2
  import gradio as gr
3
+ import requests
4
 
5
+ def query(link):
6
+ response = requests.post("https://api-inference.huggingface.co/models/PoseyATX/GPTxLege_FoxHunter", headers={"Authorization": "Bearer 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"}, json=payload)
7
+ return response.json()
8
+ super().load(name=PoseyATX/FoxHunter, src=huggingface, api_key=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, alias=FoxHunter, **kwargs)
9
+ output = query({
10
+ "inputs": "https://capitol.texas.gov/tlodocs/88R/billtext/html/HB00025I.htm",
11
+ })
12
 
13
+ iface = gr.Interface(fn=query, inputs="text", outputs="text")
14
+ iface.launch("share=True")