Spaces:
Runtime error
Runtime error
| import traceback | |
| import logging | |
| from typing import Optional | |
| import spaces | |
| import gradio as gr | |
| logger = logging.getLogger(__name__) | |
| logger.setLevel(logging.WARNING) | |
| handler = logging.StreamHandler() | |
| logger.addHandler(handler) | |
| print("here") | |
| logger.warning(f"The repository is downloading to:") | |
| MARKDOWN = """ | |
| <div align="center"> | |
| <h2>Magma: A Foundation Model for Multimodal AI Agents</h2> | |
| [Jianwei Yang](https://jwyang.github.io/)<sup>*</sup><sup>1</sup><sup>β </sup> | |
| [Reuben Tan](https://cs-people.bu.edu/rxtan/)<sup>1</sup><sup>β </sup> | |
| [Qianhui Wu](https://qianhuiwu.github.io/)<sup>1</sup><sup>β </sup> | |
| [Ruijie Zheng](https://ruijiezheng.com/)<sup>2</sup><sup>β‘</sup> | |
| [Baolin Peng](https://scholar.google.com/citations?user=u1CNjgwAAAAJ&hl=en&oi=ao)<sup>1</sup><sup>β‘</sup> | |
| [Yongyuan Liang](https://cheryyunl.github.io)<sup>2</sup><sup>β‘</sup> | |
| [Yu Gu](https://users.umiacs.umd.edu/~hal/)<sup>1</sup> | |
| [Mu Cai](https://pages.cs.wisc.edu/~mucai/)<sup>3</sup> | |
| [Seonghyeon Ye](https://seonghyeonye.github.io/)<sup>4</sup> | |
| [Joel Jang](https://joeljang.github.io/)<sup>5</sup> | |
| [Yuquan Deng](https://scholar.google.com/citations?user=LTC0Q6YAAAAJ&hl=en)<sup>5</sup> | |
| [Lars Liden](https://sites.google.com/site/larsliden)<sup>1</sup> | |
| [Jianfeng Gao](https://www.microsoft.com/en-us/research/people/jfgao/)<sup>1</sup><sup>β½</sup> | |
| <sup>1</sup> Microsoft Research; <sup>2</sup> University of Maryland; <sup>3</sup> University of Wisconsin-Madison; <sup>4</sup> KAIST; <sup>5</sup> University of Washington | |
| <sup>*</sup> Project lead <sup>β </sup> First authors <sup>β‘</sup> Second authors <sup>β½</sup> Leadership | |
| \[[arXiv Paper](https://www.arxiv.org/pdf/2502.13130)\] \[[Project Page](https://microsoft.github.io/Magma/)\] \[[Github Repo](https://github.com/microsoft/Magma)\] \[[Hugging Face Model](https://huggingface.co/microsoft/Magma-8B)\] | |
| This demo is powered by [Gradio](https://gradio.app/) and uses OmniParserv2 to generate Set-of-Mark prompts. | |
| </div> | |
| """ | |
| logger.warning("Starting App.") | |
| with gr.Blocks() as demo: | |
| gr.Markdown(MARKDOWN) | |
| # demo.launch(debug=True, show_error=True, share=True) | |
| # demo.launch(share=True, server_port=7861, server_name='0.0.0.0') | |
| demo.queue().launch(share=False) | |