Spaces:
Sleeping
Sleeping
File size: 443 Bytes
aa14319 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import argparse
import subprocess
import sys
def main():
parser = argparse.ArgumentParser(description="MedRAG Multi-Modal CLI")
parser.add_argument("command", choices=["run"], help="Command to execute")
args = parser.parse_args()
if args.command == "run":
# Assuming your Streamlit app is in app.py
subprocess.run([sys.executable, "-m", "streamlit", "run", "app.py"])
if __name__ == "__main__":
main()
|