OAuth-free version to fix HfFolder import error
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""
|
| 3 |
-
Simple Browser Automation Tool for HuggingFace Spaces
|
| 4 |
"""
|
| 5 |
|
| 6 |
import gradio as gr
|
|
@@ -106,7 +106,7 @@ def batch_navigate(urls, headless=True):
|
|
| 106 |
# Gradio Interface
|
| 107 |
def main():
|
| 108 |
with gr.Blocks(title="Browser Automation Tool") as demo:
|
| 109 |
-
gr.Markdown("# π Browser Automation Tool -
|
| 110 |
|
| 111 |
with gr.Tab("Single URL"):
|
| 112 |
with gr.Row():
|
|
@@ -162,10 +162,11 @@ def main():
|
|
| 162 |
- π **Content Extraction**: Extract text content from HTML
|
| 163 |
- β‘ **Batch Processing**: Process multiple URLs at once
|
| 164 |
- π§ **Configurable Options**: Headless mode, window sizes
|
|
|
|
| 165 |
""")
|
| 166 |
|
| 167 |
return demo
|
| 168 |
|
| 169 |
if __name__ == "__main__":
|
| 170 |
demo = main()
|
| 171 |
-
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""
|
| 3 |
+
Simple Browser Automation Tool for HuggingFace Spaces - No OAuth Version
|
| 4 |
"""
|
| 5 |
|
| 6 |
import gradio as gr
|
|
|
|
| 106 |
# Gradio Interface
|
| 107 |
def main():
|
| 108 |
with gr.Blocks(title="Browser Automation Tool") as demo:
|
| 109 |
+
gr.Markdown("# π Browser Automation Tool - OAuth-Free Version")
|
| 110 |
|
| 111 |
with gr.Tab("Single URL"):
|
| 112 |
with gr.Row():
|
|
|
|
| 162 |
- π **Content Extraction**: Extract text content from HTML
|
| 163 |
- β‘ **Batch Processing**: Process multiple URLs at once
|
| 164 |
- π§ **Configurable Options**: Headless mode, window sizes
|
| 165 |
+
- β
**OAuth-Free**: No authentication required
|
| 166 |
""")
|
| 167 |
|
| 168 |
return demo
|
| 169 |
|
| 170 |
if __name__ == "__main__":
|
| 171 |
demo = main()
|
| 172 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, share=False)
|