Spaces:
Sleeping
Sleeping
Commit
·
701311c
1
Parent(s):
dd15b51
big text
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ with gr.Blocks() as demo:
|
|
54 |
with gr.Column():
|
55 |
model_dropdown = gr.Textbox(label="Model", value="Mistral-7B-Instruct-v0.2")
|
56 |
prompt_input = gr.Textbox(label="Prompt", value="List me all the press releases with their headlines and urls.")
|
57 |
-
source_input = gr.Textbox(label="
|
58 |
scrape_button = gr.Button("Scrape and Summarize")
|
59 |
|
60 |
with gr.Column():
|
|
|
54 |
with gr.Column():
|
55 |
model_dropdown = gr.Textbox(label="Model", value="Mistral-7B-Instruct-v0.2")
|
56 |
prompt_input = gr.Textbox(label="Prompt", value="List me all the press releases with their headlines and urls.")
|
57 |
+
source_input = gr.Textbox(label="Source", value="https://www.whitehouse.gov/")
|
58 |
scrape_button = gr.Button("Scrape and Summarize")
|
59 |
|
60 |
with gr.Column():
|
test.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from gradio_client import Client
|
2 |
+
|
3 |
+
client = Client("sadidul012/test-space")
|
4 |
+
result = client.predict(
|
5 |
+
prompt="List me all the press releases with their headlines and urls.",
|
6 |
+
source="html",
|
7 |
+
api_name="/scrape_and_summarize"
|
8 |
+
)
|
9 |
+
print(result)
|