Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
def
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
iface = gr.Interface(fn=
|
| 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")
|