SKekana commited on
Commit
75fa629
·
1 Parent(s): a13aafb

Read to push to Agents-MCP-Hackathon org

Browse files
Files changed (2) hide show
  1. README.md +4 -3
  2. app.py +2 -1
README.md CHANGED
@@ -8,12 +8,13 @@ sdk_version: 5.33.0
8
  app_file: app.py
9
  pinned: false
10
  short_description: 'Gradio app combining ASE simulations with Gemini AI. '
 
11
  ---
12
 
13
 
14
  # ASE-Gemini MCP Tool
15
 
16
- This project is a **Gradio-based Model Control Panel (MCP)** for running atomic and molecular simulations using the [Atomic Simulation Environment (ASE)](https://wiki.fysik.dtu.dk/ase/), with natural language setup and analysis powered by **Gemini** (Google's LLM). Users can describe their simulation tasks in plain English, and the tool will set up, run, and analyze simulations automatically.
17
 
18
  ---
19
 
@@ -52,7 +53,7 @@ pip install -r requirements.txt
52
  The application requires access to Gemini. Set your API key (replace with your actual key):
53
 
54
  ```python
55
- # In gradio_ase_gemini.py
56
  genai.configure(api_key="YOUR_GEMINI_API_KEY")
57
  ```
58
 
@@ -65,7 +66,7 @@ pip install -r requirements.txt
65
  2. **Run the Application**
66
 
67
  ```sh
68
- python gradio_ase_gemini.py
69
  ```
70
 
71
  3. **Open the Gradio Interface**
 
8
  app_file: app.py
9
  pinned: false
10
  short_description: 'Gradio app combining ASE simulations with Gemini AI. '
11
+ tags: [agent-demo-track, ASE, Gemini, Gradio]
12
  ---
13
 
14
 
15
  # ASE-Gemini MCP Tool
16
 
17
+ This project is a **Gradio-based Model Control Panel (MCP)** for running atomic and molecular simulations using the [Atomic Simulation Environment (ASE)](https://wiki.fysik.dtu.dk/ase/), with natural language setup and analysis powered by **Gemini** (Google's LLM). Users can describe their simulation tasks in plain English, and the tool will set up, run, and analyze simulations automatically. [Video Presentation](https://mylifeunisaac-my.sharepoint.com/:v:/g/personal/63230615_mylife_unisa_ac_za/ETIgsxm_7x5Erxuub3LqmBYBn511VRGulyimNRm8BGTRow?nav=eyJyZWZlcnJhbEluZm8iOnsicmVmZXJyYWxBcHAiOiJPbmVEcml2ZUZvckJ1c2luZXNzIiwicmVmZXJyYWxBcHBQbGF0Zm9ybSI6IldlYiIsInJlZmVycmFsTW9kZSI6InZpZXciLCJyZWZlcnJhbFZpZXciOiJNeUZpbGVzTGlua0NvcHkifX0&e=Nn40pW)
18
 
19
  ---
20
 
 
53
  The application requires access to Gemini. Set your API key (replace with your actual key):
54
 
55
  ```python
56
+ # In app.py
57
  genai.configure(api_key="YOUR_GEMINI_API_KEY")
58
  ```
59
 
 
66
  2. **Run the Application**
67
 
68
  ```sh
69
+ python app.py
70
  ```
71
 
72
  3. **Open the Gradio Interface**
app.py CHANGED
@@ -23,6 +23,7 @@ load_dotenv()
23
  API_KEY = os.getenv("GEMINI_API_KEY")
24
  # MODEL = 'gemini-2.0-flash'
25
  MODEL = 'gemini-2.5-flash-preview-04-17'
 
26
 
27
  if not API_KEY:
28
  print("WARNING: GEMINI_API_KEY environment variable not set. App will not function.")
@@ -213,7 +214,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="teal", secondary_hue="orange"))
213
  user_query_input = gr.Textbox(
214
  label="Your Simulation Request:",
215
  placeholder="e.g., 'Optimize a water molecule (H2O) using EMT and show the final geometry and energy.'",
216
- lines=4,
217
  elem_id="user_query_textbox"
218
  )
219
  with gr.Column(scale=1):
 
23
  API_KEY = os.getenv("GEMINI_API_KEY")
24
  # MODEL = 'gemini-2.0-flash'
25
  MODEL = 'gemini-2.5-flash-preview-04-17'
26
+ # MODEL = 'gemini-2.5-pro-exp-03-25'
27
 
28
  if not API_KEY:
29
  print("WARNING: GEMINI_API_KEY environment variable not set. App will not function.")
 
214
  user_query_input = gr.Textbox(
215
  label="Your Simulation Request:",
216
  placeholder="e.g., 'Optimize a water molecule (H2O) using EMT and show the final geometry and energy.'",
217
+ lines=10,
218
  elem_id="user_query_textbox"
219
  )
220
  with gr.Column(scale=1):