Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,9 +40,9 @@ Generate a **detailed and structured** response based on the given **science con
|
|
40 |
5. **Observations Requirements Table**: Generate a table relevant to the Science Objectives, Physical Parameters, Observables and Description of Desired Observations with the following columns:
|
41 |
- Wavelength Band: Should only be UV, Visible and Infrared).
|
42 |
- Instrument: Should only be Imager, Spectrograph, Polarimeter and Coronagraph).
|
43 |
-
- Necessary Values: The necessary values or parameters (wavelength range, spectral resolution where applicable, spatial resolution where applicable).
|
44 |
- Desired Values: The desired values or parameters (wavelength range, spectral resolution where applicable, spatial resolution where applicable).
|
45 |
-
- Justification:
|
46 |
- Comments: Additional notes or remarks regarding each observation.
|
47 |
|
48 |
#### **Table Format**
|
@@ -260,9 +260,9 @@ def export_to_word(response_content, subdomain_definition, science_goal):
|
|
260 |
|
261 |
for section in sections:
|
262 |
if section.strip():
|
263 |
-
# Handle the "
|
264 |
-
if section.startswith('
|
265 |
-
doc.add_heading('
|
266 |
|
267 |
# Extract table lines
|
268 |
table_lines = section.split('\n')[2:] # Start after the heading line
|
|
|
40 |
5. **Observations Requirements Table**: Generate a table relevant to the Science Objectives, Physical Parameters, Observables and Description of Desired Observations with the following columns:
|
41 |
- Wavelength Band: Should only be UV, Visible and Infrared).
|
42 |
- Instrument: Should only be Imager, Spectrograph, Polarimeter and Coronagraph).
|
43 |
+
- Necessary Values: The necessary values or parameters (wavelength range, spectral resolution where applicable, spatial resolution where applicable, contrast ratio where applicable).
|
44 |
- Desired Values: The desired values or parameters (wavelength range, spectral resolution where applicable, spatial resolution where applicable).
|
45 |
+
- Justification: Detailed scientific explanation of why these observations are important for the science objectives.
|
46 |
- Comments: Additional notes or remarks regarding each observation.
|
47 |
|
48 |
#### **Table Format**
|
|
|
260 |
|
261 |
for section in sections:
|
262 |
if section.strip():
|
263 |
+
# Handle the "Observations Requirements Table" separately with proper formatting
|
264 |
+
if section.startswith('Observations Requirements Table'):
|
265 |
+
doc.add_heading('Observations Requirements Table', level=1)
|
266 |
|
267 |
# Extract table lines
|
268 |
table_lines = section.split('\n')[2:] # Start after the heading line
|