openalex_mapper / app.py

Commit History

Update pagination method in app.py to use 'page' for improved fallback handling in query results.
f1adc40
Running

MaxNoichl commited on

Call _warmup function directly after demo.load in app.py for immediate execution during initialization.
6d92dbc

MaxNoichl commited on

Replace direct call to _warmup function with demo.load for improved integration in app.py
1b21585

MaxNoichl commited on

Refactor warmup logic by consolidating _warmup function calls in app.py for improved clarity and consistency.
5863255

MaxNoichl commited on

bumped gradio
e6c7c5e

MaxNoichl commited on

Refactor GPU warmup logic by directly calling _warmup function and removing redundant demo.load call in request context.
3beb81b

MaxNoichl commited on

Set MPLCONFIGDIR for matplotlib and safely run GPU warmup in request context
d70966f

MaxNoichl commited on

Fixed categorical colors.
20cd1f4

MaxNoichl commited on

Updated sizing small aestheztic changes & fixes to sampling
e5dee3b

MaxNoichl commited on

Many updates, mainly added categorical.
f895c88

MaxNoichl commited on

Implement DOI list handling in CSV uploads and add highlight color feature in predictions. Refactor embedding creation function for clarity and enhance OpenAlex record fetching with new utility function.
cabc445

MaxNoichl commited on

Remove unnecessary commented-out code in app.py to enhance clarity and maintainability.
9c57eb7

MaxNoichl commited on

recomit to force push
80e91af

MaxNoichl commited on

Refactor app.py to improve handling of serialized data in DataFrame uploads, replacing previous parsing logic with a more robust JSON and Python-repr parsing function. Update file upload instructions to clarify supported formats.
c3c41c1

MaxNoichl commited on

Refactor app.py to enhance spaces import handling, provide a fallback for non-Space environments, and restore necessary function calls for resource initialization.
a236b7f

MaxNoichl commited on

Refactor app.py to streamline spaces import logic and remove commented-out code for clarity.
1dbcc7d

MaxNoichl commited on

Refactor spaces import handling in app.py to conditionally import and provide a fallback for non-Space environments.
2887a58

MaxNoichl commited on

Refactor GPU function definitions in app.py to improve structure and ensure warmup function is called before embedding creation.
dbd8935

MaxNoichl commited on

Add warmup function in app.py to initialize GPU processing with a print statement.
a682539

MaxNoichl commited on

Remove unnecessary import of spaces in app.py
bb6d2d0

MaxNoichl commited on

Add GPU-aware function to create embeddings for input texts in app.py
6fb2f1c

MaxNoichl commited on

add spaces import
4293529

MaxNoichl commited on

Refactor data processing in app.py to improve handling of dictionary-like strings in DataFrame and update file upload options to support both CSV and Pickle formats.
2b3a335

MaxNoichl commited on

Comment out torch import and remove it from requirements.txt
1743cbd

MaxNoichl commited on

printout running statement
8795549

MaxNoichl commited on

bounced torch to 2.0.0
da900a2

MaxNoichl commited on

Kicked out pkl upload, fixed csv-upload. Update requirements.txt to specify torch version and add gradio dependency.
a28644f

MaxNoichl commited on

Enhance data processing in app.py and openalex_utils.py by improving handling of referenced works and filling missing publication values with spaces.
d748d3b

MaxNoichl commited on

Update project funding information in app.py for clarity and consistency.
4c3ab20

MaxNoichl commited on

rm working paper, added citation
6530acf

MaxNoichl commited on

commented out numba diagnostics, remove later.
137342e

MaxNoichl commited on

Toggle use_medoids parameter in prediction function back to True and update datamapplot dependency to point to alternative version by MNoichl.
9028ab4

MaxNoichl commited on

Toggle use_medoids parameter in prediction function to False for testing purposes.
c6e66f5

MaxNoichl commited on

added import for datamapplot.medoids and printed its help documentation
abbe3d1

MaxNoichl commited on

set Numba threads to 16 and print updated thread count
ff632cb

MaxNoichl commited on

added numba threads-check
a6bf88c

MaxNoichl commited on

check numba config
089051e

MaxNoichl commited on

set up caching dirs.
d6522f3

MaxNoichl commited on

Refactor datamapplot version retrieval to use subprocess and update requirements to point to the main branch
3a5b459

MaxNoichl commited on

force-bumped gradio added datamaplot version printout
8016bd1

MaxNoichl commited on

Enhance data processing by adding CSV and Pickle file upload support, improving error handling, and refining the prediction pipeline. Update the `process_records_to_df` function to handle existing DataFrames and ensure required fields are processed correctly.
ad4e2b9

MaxNoichl commited on

Add JavaScript function to enforce light theme by refreshing the page
3673672

MaxNoichl commited on

Add retry mechanism and local publication year approximation to data processing
1431c60

MaxNoichl commited on

Update datamapplot dependency and minor UI text adjustments
d37c745

MaxNoichl commited on

linechange, test 2nd space push
41c382c

MaxNoichl commited on

Call is_running_in_hf_zero_gpu() function
d491a19

MaxNoichl commited on

added tier separation
887a63e

MaxNoichl commited on

adjusted_pointsize
e1c0285

MaxNoichl commited on

seting ssr to false
7809ddd

MaxNoichl commited on

Improve Uvicorn server configuration for local and HF Spaces
15ce78e

MaxNoichl commited on