Spaces:
Running
on
Zero
Running
on
Zero
File size: 2,333 Bytes
32104a7 2adceb1 dc6b3d4 90d3504 2adceb1 dc0e7b5 34f46ed 2adceb1 dc6b3d4 90d3504 dc6b3d4 c6ba3e6 f998db7 dc6b3d4 34f46ed dc6b3d4 34f46ed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
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: {local_dir}")
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)
|